package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.LawsRegulationsTypeExample.E_CODE;
import static org.jsola.hr.example.LawsRegulationsTypeExample.E_NAME;
import static org.jsola.hr.example.LawsRegulationsTypeExample.E_SORT;
import static org.jsola.hr.example.LawsRegulationsTypeExample.M_CODE_MAX;
import static org.jsola.hr.example.LawsRegulationsTypeExample.M_NAME_MAX;
import static org.jsola.hr.example.LawsRegulationsTypeExample.N_CODE;
import static org.jsola.hr.example.LawsRegulationsTypeExample.N_NAME;
import static org.jsola.hr.example.LawsRegulationsTypeExample.N_SORT;

/**
 * 卫人云-政策法规分组
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【卫人云-政策法规分组】的参数")
@Data
public class LawsRegulationsTypeUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_CODE, example = E_CODE)
    @Length(max = 50, message = M_CODE_MAX)
    private String code;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;


}

